package com.gl.common.constant;

/**
 * 通用常量信息
 */
public class Constants {

	/**
	 * 通用成功标识
	 */
	public static final int SUCCESS = 0;

	/**
	 * 通用失败标识
	 */
	public static final int FAIL = 1;

	/**
	 * 登录成功
	 */
	public static final String LOGIN_SUCCESS = "Success";

	/**
	 * 注销
	 */
	public static final String LOGOUT = "Logout";

	/**
	 * 登录失败
	 */
	public static final String LOGIN_FAIL = "Error";

	/**
	 * 验证码有效期（分钟）
	 */
	public static final Integer CAPTCHA_EXPIRATION = 2;

	/**
	 * 令牌
	 */
	public static final String TOKEN = "token";

	/**
	 * 令牌前缀
	 */
	public static final String TOKEN_PREFIX = "Bearer ";

	/**
	 * Jwts中claims的令牌前缀
	 */
	public static final String LOGIN_USER_KEY = "login_user_key";

	/**
	 * Layout组件标识
	 */
	public final static String LAYOUT = "Layout";

	/**
	 * 校验返回结果码
	 */
	public final static String UNIQUE = "0";
	public final static String NOT_UNIQUE = "1";

	/**
	*用户权限缓存
	*/
	public static final String SAAS_USER_PERMISSION = "saas:user:permission";

	/**
	 * 所有权限缓存
	 */
	public static final String SAAS_PERMISSION = "SAAS_PERMISSION";

}
